package org.jeecg.modules.music.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.api.dto.CommentDto;
import org.jeecg.modules.music.entity.MusComment;

import java.util.List;

public interface MusCommentMapper extends BaseMapper<MusComment> {

    List<CommentDto> queryHotComments(@Param("uid") String uid, @Param("type") Integer type, @Param("limit") Integer limit, @Param("offset") Integer offset);

    List<CommentDto> queryToUidComments(@Param("toUid") String toUid);

    boolean removeComment(@Param("uid") String uid, @Param("userUid") String userUid, @Param("targetUid") String targetUid);

    void deleteCommentByUser(@Param("uid") String id);
}
